#include "Factory.h"
#include "Product.h"
#include <iostream>

using namespace std;

void test()
{
    cout << "test()" << endl;
    Factory* factory = new ConcreteFactory();
    cout << "create factory success" << endl;
    Product* product = factory->CreateProduct();
    cout << "create product success" << endl;
    delete product;
    cout << "delete product" << endl;
    cout << "~test()" << endl;
}

int main()
{
    test();
    return 0;
}